package month4.day18;

import java.util.Scanner;

public class S3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入两个整数：");
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int result1 = num1 & num2;
        int result2 = num1 | num2;
        int result3 = num1 ^ num2;
        System.out.println("&的结果是：" + result1);
        System.out.println("|的结果是：" + result2);
        System.out.println("^的结果是：" + result3);
    }
}
